/**
 * 
 */
package jvs.vfs;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;
import java.io.Writer;
import java.net.URI;

/**
 * @author qiangli
 * 
 */
public class DefaultDriver implements Driver {

	public DefaultDriver() {
	}

	public File createFile(URI uri) throws IOException {
		return new x.java.io.File(uri);
	}
	
	public File createFile(File parent, String name) throws IOException {
		return new x.java.io.File(parent, name);
	}

	public InputStream createInputStream(File file) throws IOException {
		return new x.java.io.FileInputStream(file);
	}

	public OutputStream createOutputStream(File file) throws IOException {
		return new x.java.io.FileOutputStream(file);
	}

	public Reader createReader(File file) throws IOException {
		return new x.java.io.FileReader(file);
	}

	public Writer createWriter(File file) throws IOException {
		return new x.java.io.FileWriter(file);
	}
}
